
#include "app/window.h"
#include "app/event_loop.h"
#include "core/utils.h"
#include "core/logs.h"

#include <string.h>

void test_event_idle()
{
	static int start_time = 0;

	if( !start_time )
		start_time = ve_get_time();

	if( ve_get_time() - start_time > 500 )
	{

	}
}

int main( int argc, char *argv[] )
{
	VEEventCallbacks callbacks;
	VEWindow * window;

	memset( &callbacks, 0, sizeof(callbacks) );
	callbacks.idle = test_event_idle;
	ve_event_loop_init( &callbacks );

	window = ve_window_create( "Test", 800, 600 );

	ve_event_loop_run();

	ve_window_delete( window );

	return 0;
}
